package  com.zerosky.crm.service;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.EarningRecord;
import com.zerosky.crm.util.PageInfo;

/**Earningrecord业务逻辑接口 
 * @author hugy;
 * @since 2017-06-08
 */
public interface EarningRecordService {

	/**Earningrecord列表接口
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public List<EarningRecord> getEarningRecordList(Map map);

	public PageInfo<EarningRecord> getPageInfoList(Map map,PageInfo<EarningRecord> page);
	/**通过主键查找Earningrecord实体接口
	 * @param id Earningrecord主键
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public EarningRecord getEarningRecordById(String id);

	/**保存Earningrecord接口 
	 * @param Earningrecord 实体对象, operation 操作类型
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public void saveEarningRecord(EarningRecord earningrecord, String operation) throws Exception;
	
	 
	/** 删除Earningrecord接口
	 * @param idArray Earningrecord主键数组
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public void deleteEarningRecordById(String id) throws Exception;
}
